package com.oa.ylms.apps.business.plan;

import java.util.List;

import com.oa.ylms.apps.entity.archives.StaffInfoValue;
import com.oa.ylms.apps.entity.plan.MessageInfoValue;

public interface IMessageInfoService {
	
	public int addMessageInfo(String title, String contents, int staffId) throws Exception;
	
	public boolean read(int messageId) throws Exception;
	
	public boolean deleteMessageInfo(int messageId) throws Exception;
	
	public MessageInfoValue queryByMessageId(int messageId) throws Exception;
	
	public List<MessageInfoValue> queryMessageInfoWithPage(int staffId, Integer states, int rows ,int pageNo) throws Exception;
	
	public int countTPage(int staffId, Integer states, int rows) throws Exception;

	public int getTotalNumber() throws Exception;
	
	public int getTotalCount(StaffInfoValue staffInfo) throws Exception;
	
	public int getUnreadCount(StaffInfoValue staffInfo) throws Exception;
}
